package com.raycloud.dingtalk.starter.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author fay  fay9395@gmail.com
 * @date 2019-07-22 09:46.
 */
@Data
public class DingTalkReq {
    /**
     * "text"
     */
    private String msgtype;
    /**
     *
     */
    private DingTalkText text;
    /**
     * 1487561654123
     */
    private Date createAt;
    /**
     * 2
     */
    private String conversationType;
    /**
     * "12345"
     */
    private String conversationId;
    /**
     * "钉钉群"
     */
    private String conversationTitle;
    /**
     * "dingtalk1235"
     */
    private String senderId;
    /**
     * "星星"
     */
    private String senderNick;
    /**
     * 075263"
     */
    private String senderStaffId;
    /**
     * false
     */
    private Boolean isAdmin;
    /**
     * 用户自定义上下文
     */
    private String context;
    /**
     * test"
     */
    private String chatbotCorpId;
    /**
     * XXX
     */
    private String chatbotUserId;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class DingTalkText {
        /**
         * 我就是我, 是不一样的烟火
         */
        private String content;
    }
}
